﻿namespace Blaze.ConfigExporters.Configs
{
    using System.Xml.Serialization;
    using ConfigExportTool.Serialization;

    /// <summary>
    /// 语言包配置。
    /// </summary>
    public class LanguageDB
    {
        public class Item
        {
            [XmlAttribute("ID")]
            [DataMapKey]
            public string Id;

            [XmlText]
            [DataMapValue]
            public string Value;
        }

        [XmlArray("Items",Order = 2)]
        [XmlArrayItem("Item")]
        [DataMap]
        public Item[] Items;

        [XmlElement("ID", Order = 1)]
        public string Id = "ZHCN";
    }
}